import React from 'react';
import { Switch, BrowserRouter, Route } from 'react-router-dom';
import './App.scss';
import Home from './views/Home'
import About from './views/About'
import News from './views/News'

class App extends React.Component {
  constructor(props) {
    super(props)
    this.state = {};
  }

  render() {
    return (
      <div className="test">
        <h1>dadfdffef</h1>
        <BrowserRouter>
          <Switch>
            <Route exact component={Home} path="/"></Route>
            <Route component={About} path="/about"></Route>
            <Route component={News} path="/news"></Route>
          </Switch>
        </BrowserRouter>
      </div>
    )
  }
}


/*   function App() {
    return (
      <div className="App">
        <header className="App-header">
          <img src={logo} className="App-logo" alt="logo" />
          <p>
            Edit <code>src/App.js</code> and save to reload.
          </p>
          <a
            className="App-link"
            href="https://reactjs.org"
            target="_blank"
            rel="noopener noreferrer"
          >
            Learn React
          </a>
        </header>
      </div>
    );
  } */


export default App;